#ifndef __WIIMOTEMANAGER_H__
#define __WIIMOTEMANANGER_H__

#include <boost/thread.hpp>

#include "Wiimote.h"

#define MAX_WIIMOTES 4

namespace MediaCenter
{
    class WiimoteManager
    {
    public:
        WiimoteManager();
        ~WiimoteManager();

		void Update();
        void Shutdown();
		void ThreadFunc();

		Wiimote* wiimotes[MAX_WIIMOTES];

    private:
		boost::thread* connectionThread;

        wiimote** wiiusemotes;
		bool running;
    };
}

#endif